package mest.dao.hank;

import mest.entity.plan_saleout;
import mest.entity.plan_takematerial;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface plan_saleoutMapper {
    int deleteByPrimaryKey(Integer id,@Param("theirDb")String theirDb);

    int insert(plan_saleout record,@Param("theirDb")String theirDb);

    int insertSelective(plan_saleout record,@Param("theirDb")String theirDb);

    plan_saleout selectByPrimaryKey(Integer id,@Param("theirDb")String theirDb);

    int updateByPrimaryKeySelective(Object param);

    int updateByPrimaryKey(plan_saleout record,@Param("theirDb")String theirDb);

    void insertResult_id(Object param);




    /**
     * 1.model查询+模糊
     * @param record
     * @return
     */
    List<Map> queryAllModel(@Param("index") Integer index,
                            @Param("pageSize") Integer pageSize,
                            @Param("record") String record,
                            @Param("state") Integer state,@Param("theirDb")String theirDb);

    /**
     * 2.model 总行数查询
     * @param record
     * @return
     */
    int findCount(@Param("record") String record,@Param("state") Integer state,@Param("theirDb")String theirDb);
}